package www.openteam.com.bean;

import java.io.Serializable;

import www.openteam.com.R;
import www.openteam.com.ui.realtime.EvaluateFragment;
import www.openteam.com.ui.realtime.StockFragment;
import www.openteam.com.ui.realtime.DeliverGoodFragment;
import www.openteam.com.ui.realtime.ProduceScheduleFragment;
import www.openteam.com.ui.realtime.TakeGoodFragment;

/**
 * Created by kylin on 2016/8/4.
 * 各个枚举类
 */
public enum RealTime implements Serializable {


        DELIVERGOODS(0,R.string.gridview_deliver_goods,
            R.drawable.tab_icon_delivergoods,DeliverGoodFragment.class,R.array.delivergoods,"DD0012"),

        TAKEDELIVERY(1,R.string.gridview_take_delivery, R.drawable.tab_icon_purchase,TakeGoodFragment.class,R.array.takedelivery,"CG0006"),

        PRODUCE(0, R.string.gridview_production, R.drawable.tab_icon_prdsche, ProduceScheduleFragment.class, R.array.produce, "PD0003"),
//
        INVENTORYQUERY(3,R.string.gridview_inventory_query,R.drawable.tab_icon_stockcheck,StockFragment.class,
            R.array.inventoryquery,"ST0009"),

        PRINT(4,R.string.print_evaluate,R.drawable.tab_icon_print, EvaluateFragment.class,
            R.array.inventoryquery,"ST0009") ;


//    WORKORDER(1, R.string.work_order, R.drawable.tab_icon_workorder,
//            ZZWorkOrderFragment.class, R.array.workorder, "PD0001"),
    ;

    private int id;   //编号
    private int resName; //名称
    private int resIcon; //图标
    private Class<?> clz; //详细
    private int resDetail; //描述
    private String appAuthority; //权限

    RealTime(int id, int resName, int resIcon, Class<?> clz, int resDetail, String appAuthority) {
        this.id = id;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
        this.resDetail = resDetail;
        this.appAuthority = appAuthority;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public void setClz(Class<?> clz) {
        this.clz = clz;
    }

    public int getResDetail() {
        return resDetail;
    }

    public void setResDetail(int resDetail) {
        this.resDetail = resDetail;
    }

    public String getAppAuthority() {
        return appAuthority;
    }

    public void setAppAuthority(String appAuthority) {
        this.appAuthority = appAuthority;
    }
}
